package wsjc.com.buglydemo;

import android.app.Activity;
import android.os.Bundle;

public class BugActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bug);
        bug();
    }

    public String bug(){
        //这段代码汇报空指针异常
//        String str = null;
//        Log.e("BugClass","get string length:" +str.length());
        return "This is a bug class";

    }
}
